Don't use __USE_GNU
authorAdrian Bunk <bunk@debian.org>
Tue, 17 Mar 2026 14:23:03 +0000 (15:23 +0100)
committerAndreas Dolp <dev@andreas-dolp.de>
Tue, 17 Mar 2026 14:23:03 +0000 (15:23 +0100)
Bug-Debian: https://bugs.debian.org/890432
Last-Update: 2025-07-11

__USE_GNU is a glibc-internal symbol.
AC_USE_SYSTEM_EXTENSIONS is the proper autoconf
way to enable extensions.

Gbp-Pq: Name no-use-gnu.patch

configure.ac
src/suricata-common.h

index 1673bfcc90e75e61168949f90d4d3acd076b0d59..f0f5aca7a124596bd7f33226fc22880ac5a587da 100644 (file)
@@ -6,6 +6,7 @@
     AM_INIT_AUTOMAKE([tar-ustar subdir-objects])
 
     AC_LANG([C])
+    AC_USE_SYSTEM_EXTENSIONS
     LT_INIT
     PKG_PROG_PKG_CONFIG
 
index 3bfe4255936b313e3aebb7c636326d4fa64b1de8..cce4f738ccd2639d6e05ed8545959216bda37e40 100644 (file)
@@ -35,12 +35,6 @@ extern "C"
 #define DBG_PERF
 #endif
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-
-#define __USE_GNU
-
 #if defined(__clang_analyzer__)
 /* clang analyzer acts as DEBUG_VALIDATION in some places, so
  * force this so #ifdef DEBUG_VALIDATION code gets included */